import 'package:flutter/material.dart';

/// Create： Zhang 3/22/21 2:10 PM
/// 描述：图片资源管理

Image assetImage(String name, {double? width, double? height, BoxFit? fit}) {
  return Image.asset(
    '${CustomImage.IMAGE_PATH}$name',
    width: width,
    height: height,
    fit: fit,
  );
}

class CustomImage {
  static const String IMAGE_PATH = 'assets/images/';

  static const String news = 'news.png';
}
